package opearaion;

import book.Book;
import book.BookList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LXW
 * Date: 2021-12-09
 * Time: 12:13
 */
public class DisplayOperation implements IOperation{
    @Override
    public void work(BookList booklist) {
        System.out.println("显示图书");
        int size = booklist.getSize();
        for (int i = 0; i < size; i++) {
            Book book = booklist.getPos(i);
            System.out.println(book);
        }
    }
}
